package com.animal.service.impl;


import com.animal.entity.pojo.AActivity;
import com.animal.mapper.ActivityMapper;
import com.animal.service.AvtivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AvtivityServiceImpl implements AvtivityService {

    @Autowired
    private ActivityMapper activityMapper;
    @Override
    public List<AActivity> selectAllActivity(AActivity activity) {
        return activityMapper.selectAllActivity(activity);
    }

    @Override
    public AActivity queryById(Integer id) {
        return activityMapper.queryById(id);
    }

    @Override
    public int updateActDescribe(AActivity activity) {
        return activityMapper.updateActDescribe(activity);
    }

    @Override
    public int insert(AActivity activity) {
        return activityMapper.insert(activity);
    }

    @Override
    public int deleteById(Integer id) {
        return activityMapper.deleteById(id);
    }


}
